package net.wanho.config;

import net.wanho.properties.IgnoreWhiteProperties;
import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * Author：汤小洋
 * Date：2023-11-10 15:12
 * Description：<描述>
 */
@Configuration
public class GatewayConfig {

    @Bean
    public RouteLocator routeLocator(RouteLocatorBuilder builder){
        RouteLocatorBuilder.Builder routes = builder.routes();

        // routes.route("users_route", p -> p.path("/users/**").uri("lb://user-provider"));

        return routes.build();
    }

}
